package lore.miniwechat.dao;

import lore.miniwechat.entity.Chatrecord;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ChatrecordDao {

    Chatrecord findById(String id);

    @Select("SELECT * FROM USER LIMIT #{start} ,#{size}")
    List<Chatrecord> findUserPageData(@Param("start") Integer start, @Param("size") Integer size);
}
